<?php
// +---------------------------------------------------------------------+
// | OneBase    | [ WE CAN DO IT JUST THINK ]                            |
// +---------------------------------------------------------------------+
// | Licensed   | http://www.apache.org/licenses/LICENSE-2.0 )           |
// +---------------------------------------------------------------------+
// | Author     | Bigotry <3162875@qq.com>                               |
// +---------------------------------------------------------------------+
// | Repository | https://gitee.com/Bigotry/OneBase                      |
// +---------------------------------------------------------------------+

namespace app\common\model;

/**
 * 交易平台模型
 */
class ExchangePlatform extends ModelBase
{
    protected $insert = ['create_time'];

    /**
     * 时间自动完成
     */
    public function setCreateTimeAttr($value)
    {

        return TIME_NOW;
    }
    /**
     * 标签数组
     */
    public function getTagsArrayAttr(){
        if($this->tags){
            $tags=rtrim($this->tags, ",");
            $tags=ltrim($tags, ",");
            return explode(',',$tags);
        }else{
            return [];
        }

    }





}
